
$('.btn').click(function (e) { 
    // e.preventDefault();
    console.log($("form").serialize())
    $.ajax({
        type: "post",
        url: "/api/login",
        data: $("form").serialize(),
        dataType: "json",
        success: function (res) {
            if(res.status == 200){
                alert('登录成功')
                setTimeout(window.location.href = "/listUser" ,2000)
            }else{
                alert(res.msg)
            }
        }
    });
});